Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(github-actios): Improve performance of checkout #16548

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

atomrc
Copy link
Contributor

@atomrc atomrc commented Jan 18, 2024

Description

We are currently pulling the entire repo+tags on some jobs. This is not required for most jobs.
The default value of fetch-depth: 1 is far more performant and will only fetch a single commit (see https://github.com/actions/checkout?tab=readme-ov-file#fetch-all-history-for-all-tags-and-branches)

Before

image

After

image

Checklist

  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cd84402) 45.42% compared to head (cbfdd8d) 45.42%.
Report is 1 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev   #16548   +/-   ##
=======================================
  Coverage   45.42%   45.42%           
=======================================
  Files         740      740           
  Lines       24238    24238           
  Branches     5506     5506           
=======================================
  Hits        11011    11011           
  Misses      11818    11818           
  Partials     1409     1409           

@atomrc atomrc merged commit b01fc41 into dev Jan 18, 2024
13 checks passed
@atomrc atomrc deleted the chore/improve-checkout branch January 18, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants